<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JSX初体验</title>
</head>
<script src="./js/react.development.js"></script>
<script src="./js/react-dom.development.js"></script>
<!-- 将 jsx语法转换为 js语法 -->
<script src="./js/babel.min.js"></script>
<body>
   <div id="root"></div>

   <!-- 将 script 类型改为 babel -->
   <script type="text/babel">
    //创建react 虚拟dom对象   jsx语法
    let vdom = <div>
                    <h1>hello  world!</h1>
                    <a href="https://www.baidu.com">百度一下</a>
                </div> 
                

    ReactDOM.render(vdom,document.getElementById("root"));


   </script>
</body>
</html>